﻿namespace SampleApplication.CoffeeShopSample.Implementation.Domain
{
    #region Usings

    using Dependencies.Domain;
    using System.Globalization;

    #endregion Usings

    public abstract class BaseBeverage : IBeverage
    {
        public abstract string Name { get; }

        public int Quantity { get; private set; }

        protected BaseBeverage(int quantity)
        {
            Quantity = quantity;
        }

        /// <summary>
        /// Returns a string that represents the current object.
        /// </summary>
        /// <returns>
        /// A string that represents the current object.
        /// </returns>
        public override string ToString()
        {
            return string.Format(CultureInfo.CurrentCulture, "{0} - {1} ml.", Name, Quantity);
        }
    }
}